Skip to main content

OS Services and User interface

 The hardware and software used to deliver applications to the user can be seen in a layered or hierarchical manner as shown in the following figure.

Layers and Views of a Computer System

The user of those applications, the end user, generally is not concerned with the details of computer hardware. Therefore, the end user sees the computer system in terms of a set of applications. An application can be expressed in the programming language and developed by the application programmer.If one develops an application program as a set of machine instructions that is fully responsible for controlling the computer hardware, one is faced with a very complex task.To ease this chore, a set of system programs is provided. Some of these programs are referred to as utilities. These implement frequently used functions that assist in creation of program, files management, and the control of I/O devices. A programmer will make use of these facilities in developing an application, and the application, while it is running, will invoke the utilities to perform certain functions. The most important collection of system programs comprises the OS. The operating system covers the details of the hardware from the programmer and provides the programmer with a convenient interface for using system. It acts as a mediator making it easier for a programmer and for application programs to access and use those facilities and services. 

In short, the operating system usually provides services in the following areas

          The operating system provides services to users and programs. It provides the environment to execute programs. It provides services to users to run the programs in a convenient manner.

  • I/O Operations
  • Program Execution
  • Communication
  • File System Manipulation
  • Error Detection
  • Resource Allocation
  • Protection
  • Program Development
  • System Access
  • Accounting
I/O Operations:

The Input/Output subsystem includes input/output devices and their associated driver software. Drivers hide features of specific hardware device from users. The operating system maintains communication between the user and the device drivers.

        I/O operation means reading or writing operation with any file or any specific input/output device. The operating system provides access to the required Input or output device when needed.

Program Execution:

Operating system perform a wide variety of functions, from user programs to printer spoolers, name servers, and file servers. Each of these activities is paired as a process. A process includes a complete implementation context(code to execute, data to manipulate, register operating system resources in use). The main activities of the operating system related to program management are:

  1. It loads the program into memory.
  2. Runs the program.
  3. Manages program execution.
  4. Provides a mechanism for process synchronization, process communication and deadlock management.
Communication:

In the case of distribution systems, which are a collection of memory, peripherals or processors that do not share the clock, the operating system maintains communications between all processes. Multiple processes communicate with each other through communication lines in a network.

It handles operating system routing and connection strategies and issues of conflict and security. The main functions of the operating system in relation to communication are:

  1. Both processes often require data transfer between them.
  2. The two processes can be on one computer or on different computers, but are connected by a computer network.
  3. Communication can be executed in two ways through shared memory or through message passing.
File System Manipulation:

        A file refers to the collection of relevant information. Computers can store files on disk means secondary storage for long- term storage purposes. Examples of storage media are magnetic tape, magnetic disk and optical disk drives such as CDs  and DVDs. Each of these media has it's own characteristics such as speed, capability, data transfer rate and data access methods. 

        The file system is usually organized as directories for easy navigation and use. These directories may contain files and other directions.

Some activities of the operating system related to file system manipulation are:

  1. Program needs to read a file.
  2. Program needs to write a file.
  3. Gives permissions to the program for operation on file.
  4. Permission varies from read only, read-write, denied and so on.
Error Detection:

        Errors can occur anytime and anywhere. An error may have occurred  in the central processing unit (CPU), input or output device(I/O device), or in the memory hardware. The main activities of the operating system related to error management are as follows:

  1. The operating system constantly checks for possible errors.
  2. The operating system takes appropriate action to ensure proper and consistent computing.
Resource Management:

In the case of multi-user or multi-tasking environment, resources such as main memory , central  processing unit(cpu) cycles and file storage are allocated to each user or job. The main functions of the operating system related to resource management are :

  1. Manages all types of resources using operating system schedulers.
  2. Central processing unit scheduling algorithms are used for better use of the central processing unit(CPU).
Protection:

      Protection refers to the way in which programs, processes, or users control access to resources defined by computer system. The main functions of the operating system related to security management are:

  1. The operating system ensures that all access to system resources is controlled.
  2. External input or output devices are protected from invalid access attempts.
Program Development:

The operating system provides a variety of facilities and services , such as editors and debuggers, to assist the programmer in creating programs. Typically these services are in the form of utility programs that, while not strictly part of the core of the operating system, are supplied with the operating system and are referred to as application program development tools

System Access:

        For shared or public systems, the operating system controls access to the system as a whole and to specific system resources.  The access function must provide protection of resources and data from unauthorized users and must resolve conflicts for resources contention.

Accounting:

A good operating system will collect usage statistics for various resources and monitor performance parameters such as response time. On any system, this information is useful in anticipating the need for future enhancements and in tuning the system to improve performance. On a multi-user system, the information can be used for billing purposes.    


Read also operating System 

Read Functions of Operating System

Comments

Popular posts from this blog

Types of Operating System

 Types of Operating System Batch Operating system Time sharing Operating system Distributed Operating system Network Operating system Real Time Operating system Multi programming/Processing/Tasking Operating system Mobile Operating System Batch Operating System               In a Batch operating system the similar jobs are grouped together into batches with the help of some operators and these batches are executed one by one. For example, suppose we have ten programs, some are written in c++ programming language, Some are written in c programming language and the rest are written java programming language. Now, every time we run these programs one by one, we have to load the compiler of that particular language and then run the code. But if we do a batch of these ten programs, The advantage with this approach is that for the c++ batch, you only need to load the compiler once. Similarly, for Java and C , the compiler only needs to load once and the entire batch is executed. The followin

Python Variables

variables,the name itself implies that a variable is something which can change.  Variables are like containers for storing  our data values in memory. we can change the data in variables, in python everything is an object and variables are like names given to the object, by labeling them we can easily access them. In other high level languages like C programming language, c++ programming language, and java programming language. etc.,   we need to declare the datatype of the variable , but in python it will automatically recognize the type of data you are storing in a variable. ** Remember that a variable is a name which is given to a value not to the memory. Declaring a variable is very easy you need to assign a value or a string using '=' operator. >>> p=9 >>> print(p) 9 Assigning a single value to multiple variables We can assign a single value to multiple variables.  >>> a=b=c=56 >>> a 56 >>> b 56 >>> c 56 Assigning diff

DATA TYPES IN PYTHON | (Numeric,Boolean, Dictionary)

Previous Variables in Python  In python programming language everything is an object and data type tells us which types of value the object is. Data types are classified into five types in Python programming language, they are:- Best Laptop for Web Development  in 2021. NUMERIC DATATYPES BOOLEAN DATATYPES DICTIONARY SEQUENCE DATATYPE SET type() method  Type method is used to know what type of data we are using. Numeric Data Types Numeric type consists of numerical value data types for example whenever we assign a decimal value or numbers to variables then it comes under numeric data types. It contains : int float complex type Int or Integer It is a data type where the value given by the user can be positive or negative and can be of any length that means it can be a big integer or small integer but it should not be a fraction or a decimal value. #Python Program to # demonstrate int value p= 5556677 print ( type (p)) q=- 45 print ( type (q)) #output < class 'int' > <

Even or Odd Number and Factorial of a Number in Python Programming

1. To Check if the given number is even or odd If a number is completely divided by 2 then it is even number. When the number is divided by 2, we use the remainder operator %  to calculate the remainder. If the remainder is not zero, the number is odd. SOURCE CODE:- n= int ( input ( "enter any number:- " )) if (n% 2 == 0 ): print (n , 'is even number' ) else : print (n , 'is odd number' ) OUTPUT 1st Run enter any number:- 2 2 is even number 2nd Run enter any number:- 3 3 is odd number In the above code we use "Simple if" statement.  In the above program, we ask the user for input and check if the number is odd or even. 2.Factorial number Factorial of a number defined as the product of all numbers from 1 to given number. For example  5!(5 factorial)=5*4*3*2*1 is 120. Note = factorial of 0 is 1 SOURCE CODE n= int ( input ( "Enter any number:- " )) fact= 1 for i in range ( 1 , n+ 1 ): fact=fact*i print ( 'factorial of' ,

Functions of Operating System

 Operating System is an interface between the user and the hardware and enables the interaction of a computer's hardware and software.          Also, an operating system is software that performs all the basic functions of file management, storage management, process management, managing input and output, and controlling peripherals such as disk, drivers and printers. Functions of Operating System Device Management  File Management Memory Management Process Management Mastermind Storage Management Handling input/output operations Security Functions of Operating System Device Management          Operating system manages device communication via their respective drivers. It does the following activities for device management: Keeps tracks of all devices, input/output controller is responsible for this task. Decides which process gets the device when and for how much time Allocates the device in an efficient way. De-allocates devices. File Management           The operating system al

Computer System Architecture

 Based on number of general purpose processors computer systems are classified into three types.They are: Single Processor Systems. Multiprocessor Systems. Clustered Systems. Single Processor Systems From the name it is very clear that it has only single processor. A major central processing unit that can execute a set of general utility instructions, including user process instructions. There are some other special purpose processors present that performs device specific task. In the single processor system apart from the main central processing unit(CPU) there are also other processors which are present which does not do the general purpose task but it performs some device specific task. It means that we have a certain devices in our computers like keyboard, disk, etc. for all this they may be some microprocessor  which is specified to do a specific task related to that device like for example keyboard, when we press a key on our keyboard the keystroke has to be converted to some kin

Contact form

Name

Email *

Message *